<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title>选择退货商品及数量</title>
		<meta name="viewport"
			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../../../css/common.css" />
		<link rel="stylesheet" type="text/css" href="../../../../css/style.css" />
		<link rel="stylesheet" type="text/css" href="./css/index.css" />
	</head>

	<body>
		<!-- 购物车 -->
		<div class="mui-content">
			<div class="cart-list">
				<div class="cart-list-item">
					<div class="checkbox-content">
						<img src="../../../../images/cart/icon_common_choice_unselected.png"
							class="common_choice unselected">
						<img hidden src="../../../../images/cart/icon_common_choice_selected.png"
							class="common_choice selected">
					</div>
					<div class="recommend-list-item">
						<img src="../../../../images/home/demo.jpg" class="recommend-img">
						<div class="recommend-info">
							<div class="goods-info">
								<span class="goods-title">欧莱雅黑精华抗衰老紧致补水保湿精华液官方正品50mL 今日下单即赠新品...</span>
								<span class="goods-code">编号:1234</span>
							</div>

							<div class="goods-last">
								<span class="goods-price"><span class="fuhao">退货数量</span></span>
								<!-- 计数器插件 -->
								<!-- data-numbox-min 最大值  data-numbox-max 最小值-->
								<div class="mui-numbox" data-numbox-min='1' data-numbox-max='9998'>
									<button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
									<input id="test" class="mui-input-numbox" type="number" value="1"
										disabled="disabled" />
									<button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
								</div>
							</div>

						</div>
					</div>
				</div>
				<div class="cart-list-item">
					<div class="checkbox-content">
						<img src="../../../../images/cart/icon_common_choice_unselected.png"
							class="common_choice unselected">
						<img hidden src="../../../../images/cart/icon_common_choice_selected.png"
							class="common_choice selected">
					</div>
					<div class="recommend-list-item">
						<img src="../../../../images/home/demo.jpg" class="recommend-img">
						<div class="recommend-info">
							<div class="goods-info">
								<span class="goods-title">欧莱雅黑精华抗衰老紧致补水保湿精华液官方正品50mL 今日下单即赠新品...</span>
								<span class="goods-code">编号:1234</span>
							</div>

							<div class="goods-last">
								<span class="goods-price"><span class="fuhao">退货数量:</span></span>
								<!-- 计数器插件 -->
								<!-- data-numbox-min 最大值  data-numbox-max 最小值-->
								<div class="mui-numbox" data-numbox-min='1' data-numbox-max='9998'>
									<button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
									<input id="test" class="mui-input-numbox" type="number" value="1"
										disabled="disabled" />
									<button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
								</div>
							</div>

						</div>
					</div>
				</div>
			</div>
			<div class="bottom flexaround flexcenter">
				<div class="left cart-list-item">
					<div class="checkbox-content flex flexcenter">
						<img src="../../../../images/cart/icon_common_choice_unselected.png"
							class="common_choice unselected">
						<img hidden src="../../../../images/cart/icon_common_choice_selected.png"
							class="common_choice selected">
						<span>全选</span>
					</div>
				</div>
				<div class="right" id="next">
					<span>下一步</span>
				</div>
			</div>
		</div>

		<!-- hidden 隐藏元素 无数据时展示-->
		<div class="no-cart">
			<img src="../../../../images/cart/icon_default_shoppingcart.png" class="shoppingcart">
		</div>
		<script src="../../../../js/mui.min.js"></script>
		<script src="../../../../js/jquery-3.4.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../../js/resize.js"></script>
		<script src="../../../../js/util.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			// mui.init()
			// tap事件
			$.tapHandle()
			// 下一步
			$('#next').on('tap', function() {
				window.location.href = './pages/index.html';
			})
			// 文档一加载就执行
			$(document).ready(function() {
				obj.setRem()
			})
			// 窗口调节
			$(window).resize(function() {
				obj.setRem()
			});
			$(function($) {
				/* 隐藏无商品div */
				$('.no-cart').hide();
				// 选中
				$('.cart-list-item').on('click', '.unselected', function() {
					$(this).hide();
					$(this).next().show();
				})
				// 取消选中
				$('.cart-list-item').on('click', '.selected', function() {
					console.log(this);
					$(this).hide();
					$(this).prev().show();
				})
				// 管理
				$('#cancel').hide();
				$('#cart-edit').hide();
				$('#admin').click(function() {
					// buy-edit
					$(this).hide();
					$('#buy-edit').hide();
					$('#cancel').show();
					$('#cart-edit').show();
				})
				// 取消
				$('#cancel').click(function() {
					// buy-edit
					$(this).hide();
					$('#buy-edit').show();
					$('#admin').show();
					$('#cart-edit').hide();
				})
			});
		</script>
	</body>

</html>
